<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>MongoResultException 类</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.mongoexception.html">MongoException</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongoresultexception.getdocument.html">MongoResultException::getDocument</a></div>
 <div class="up"><a href="mongo.exceptions.html">Exceptions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.mongoresultexception" class="reference">

 <h1 class="title">MongoResultException 类</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mongo &gt;=1.3.0)</p>


  <div class="section" id="mongoresultexception.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    MongoResultException 由几个助手命令（例如 <span class="methodname"><a href="mongocollection.findandmodify.html" class="methodname">MongoCollection::findAndModify()</a></span>）在发生失败事件时抛出。
    原始的结果文档可以通过
    <span class="methodname"><a href="mongoresultexception.getdocument.html" class="methodname">MongoResultException::getDocument()</a></span> 获取。
   </p>
  </div>


  <div class="section" id="mongoresultexception.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">MongoResultException</strong>
     </span>
     
     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.mongoexception.html" class="classname">MongoException</a>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.mongoresultexception.html#mongoresultexception.props.document">$<var class="varname">document</var></a></var>
    ;</div>


    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="mongoresultexception.getdocument.html" class="methodname">getDocument</a></span>
    ( <span class="methodparam">void</span>
   )</div>

    
    

   }</div>


  </div>

  

  <div class="section" id="mongoresultexception.props">
   <h2 class="title">属性</h2>
   <dl>

    
     <dt id="mongoresultexception.props.document"><var class="varname"><var class="varname">document</var></var></dt>

     <dd>

      <p class="para">array 的原始结果文档。</p>
     </dd>

    
   </dl>

  </div>



 </div>

 










<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="mongoresultexception.getdocument.html">MongoResultException::getDocument</a> — 获取完整的结果文档</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.mongoexception.html">MongoException</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongoresultexception.getdocument.html">MongoResultException::getDocument</a></div>
 <div class="up"><a href="mongo.exceptions.html">Exceptions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
